<!DOCTYPE html>
<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

  <title>【车型大全】汽车车型大全_汽车之家</title>
  <meta name="Keywords" content="汽车车型大全,车型大全">
  <meta name="Description"
    content="汽车之家车型频道提供大中小微紧凑型车,大型车,SUV,MPV,跑车,皮卡,微面等车型,可按级别,价格,排量,燃料,变速箱等筛选条件快速精准找到合适的车型,最全汽车车型信息尽在汽车之家.">
  <meta http-equiv="mobile-agent"
    content="format=html5; url=https://car.m.autohome.com.cn/price/listnew-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1.html">
  <meta http-equiv="mobile-agent"
    content="format=xhtml; url=https://car.m.autohome.com.cn/price/listnew-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1.html">


  <!--<base target="_blank">-->
  <base href="." target="_blank">
  <link href="./css/all.css" rel="stylesheet">
  <link href="./css/all2.css" rel="stylesheet">
</head>

<body class="sidebg-171111">
  <div id="app">
    <div class="content">
      <!--对联广告-->
      <div class="row">
        <div class="column grid-20 fn-visible">
          <div class="path fn-clear">
            <div class="breadnav fn-left">当前位置：<a href="/www.autohome.com.cn/" target="_self">首页</a>&nbsp;&gt;&nbsp;微面
            </div>

            <!--搜索框开始-->
            <div class="search search02 fn-right">
              <form id="souform" name="soform" action="/sou.autohome.com.cn/search.aspx" target="_blank">
                <div class="search-box">
                  <input id="q" name="q" data-toggle="search" data-val="荣威rx5" type="text" autocomplete="off"
                    class="search-text" value="请输入关键字">
                </div>
                <a title="搜索" onclick="Sou.Autocomplate.Submit();return false;" href="javascript:void(0)"
                  class="btn btn-small btn-blue"><i class="icon16 icon16-search1"></i></a>
                <input type="hidden" value="12" id="entry" name="entry">
              </form>
              <div class="search-pop" id="autocomplateTip" style="display: none;"></div>
            </div>
            <!--搜索框结束-->
          </div>
        </div>
      </div>
      <!-- 浮动开始-->
      <div class="row">
        <div class="column grid-20 fn-visible">
          <!--多项筛选开始-->
          <div class="uibox carfilter">

            <div class="uibox-title fn-clear">
              <span class="fontgrey">已选条件：</span>
              <div class="filter-bar">
                <a class="filter filter-small" href="/www.autohome.com.cn/car/" target="_self"><span
                    class="filter-text">微面</span><i class="icon16 icon16-close2"></i></a><span class="clear-all">|<a
                    href="/www.autohome.com.cn/car/" target="_self">清除全部</a></span>
              </div>
            </div>


            <div class="uibox-con">


              <dl class="carfilter-list" id="param-box">
                <dd class="price-dd">
                  <span class="fontgrey">价格：</span>
                  <!--价格筛选条开始-->
                  <div class="price-dd-choose">
                    <div id="price-range" class="price-range">
                      <div class="price-range-slider">
                        <div class="bg-darkgrey" style="left: 0px; width: 273.4px;"></div>
                        <div class="bg-darkgrey-hand" title="微面可选区间2-26万" style="left: 0px; width: 273.4px;"></div>
                        <ul class="slider-ul">
                          <li class="slider-ul-first"><i class="icon-dian"></i></li>
                          <li><i class="icon-dian"></i></li>
                          <li><i class="icon-dian"></i></li>
                          <li><i class="icon-dian"></i></li>
                          <li><i class="icon-dian"></i></li>
                          <li><i class="icon-dian"></i></li>
                          <li><i class="icon-dian"></i></li>
                          <li><i class="icon-dian"></i></li>
                          <li><i class="icon-dian"></i></li>
                          <li><i class="icon-dian"></i></li>
                        </ul>
                      </div>
                      <div class="slide-selected" style="width: 273.4px; left: 9.5px;"></div>
                      <i class="btn-price btn-left" style="left: -1px;"></i>
                      <i class="btn-price btn-right" style="left: 272.4px;"></i>
                      <div class="tip" style="left: 105.7px;">
                        <div class="tip-content">26万以下</div>
                        <span class="tip-top tip-arrow"></span>
                      </div>
                      <div class="price-range-text">
                        <span class="number number-first">2万</span><span class="number">5万</span><span
                          class="number">10万</span><span class="number">15万</span><span class="number">20万</span><span
                          class="number">25万</span><span class="number">30万</span><span class="number">35万</span><span
                          class="number">50万</span><span class="number">70万</span><span class="number">100万</span>
                      </div>
                    </div>
                  </div>
                  <!--价格筛选条结束-->

                  <div class="price-dd-recom">
                    <ul>
                      <li class="price-dd-recom-tit">推荐：</li>

                      <li><a target="_self" href="https://www.autohome.com.cn/mb/1_5-0.0_0.0-0-0-0-0-0-0-0-0/">5万以下</a>
                      </li>

                      <li><a target="_self" href="https://www.autohome.com.cn/mb/5_1-0.0_0.0-0-0-0-0-0-0-0-0/">5万以上</a>
                      </li>

                    </ul>
                  </div>

                </dd>

                <dd>
                  <div class="carfilter-width01">
                    <span class="fontgrey">排量：</span>
                    <ul>

                      <li><a class="current" href="https://www.autohome.com.cn/mb/" target="_self">全部</a></li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_1.0-0-0-0-0-0-0-0-0/"
                          target="_self">1.0L及以下</a>
                      </li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-1.1_1.6-0-0-0-0-0-0-0-0/"
                          target="_self">1.1-1.6L</a></li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-1.7_2.0-0-0-0-0-0-0-0-0/"
                          target="_self">1.7-2.0L</a></li>

                      <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">2.1-2.5L</a></li>

                      <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">2.6-3.0L</a></li>

                      <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">3.1-4.0L</a></li>

                      <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">4.0L以上</a></li>

                    </ul>
                  </div>

                  <div class="carfilter-width04">
                    <span class="fontgrey name-01">驱动：</span>
                    <ul>

                      <li><a class="current" href="https://www.autohome.com.cn/mb/" target="_self">全部</a></li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-1-0-0-0-0-0-0-0/" target="_self">前驱</a>
                      </li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-2-0-0-0-0-0-0-0/" target="_self">后驱</a>
                      </li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-3-0-0-0-0-0-0-0/" target="_self">四驱</a>
                      </li>

                    </ul>
                  </div>
                </dd>


                <dd>

                  <div class="carfilter-width01">
                    <span class="fontgrey">能源：</span>
                    <ul>

                      <li><a class="current" href="https://www.autohome.com.cn/mb/" target="_self">全部</a></li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-0-0-0-1-0-0-0/" target="_self">汽油</a>
                      </li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-0-0-0-2-0-0-0/" target="_self">柴油</a>
                      </li>

                      <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">油电混合</a></li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-0-0-0-4-0-0-0/" target="_self">纯电动</a>
                      </li>

                      <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">插电式混动</a></li>

                    </ul>
                  </div>


                  <div class="carfilter-width04">

                    <span class="fontgrey name-01">变速箱：</span>
                    <ul>

                      <li><a class="current" href="https://www.autohome.com.cn/mb/" target="_self">全部</a></li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-1-0-0-0-0-0-0/" target="_self">手动</a>
                      </li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-2-0-0-0-0-0-0/" target="_self">自动</a>
                      </li>

                    </ul>
                  </div>
                </dd>




                <dd>
                  <div class="carfilter-width01">
                    <span class="fontgrey">国别：</span>
                    <ul>

                      <li><a class="current" href="https://www.autohome.com.cn/mb/" target="_self">全部</a></li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-0-0-0-0-1-0-0/" target="_self">中国</a>
                      </li>

                      <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">德国</a></li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-0-0-0-0-3-0-0/" target="_self">日本</a>
                      </li>

                      <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">美国</a></li>

                      <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">韩国</a></li>

                      <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">法国</a></li>

                      <li class="others">
                        <a id="other-link-country" href="https://www.autohome.com.cn/mb/###" target="_self"
                          class="nolink">其他<i class="icon10 icon10-down1"></i></a>
                        <div class="dropdown fn-hide" id="drop-country">
                          <div class="dropdown-content">
                            <ul>

                              <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">英国</a></li>

                              <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">意大利</a>
                              </li>

                              <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">瑞典</a></li>

                              <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">荷兰</a></li>

                              <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">捷克</a></li>

                              <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">西班牙</a>
                              </li>

                            </ul>
                          </div>
                        </div>
                      </li>
                    </ul>
                  </div>

                  <div class="carfilter-width04">
                    <span class="fontgrey name-01">生产方式：</span>
                    <ul>

                      <li><a class="current" href="https://www.autohome.com.cn/mb/" target="_self">全部</a></li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-0-0-1-0-0-0-0/" target="_self">国产</a>
                      </li>

                      <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">进口</a></li>

                    </ul>
                  </div>
                </dd>


                <dd>


                  <div class="carfilter-width01">
                    <span class="fontgrey">座位：</span>
                    <ul>

                      <li><a class="current" href="https://www.autohome.com.cn/mb/" target="_self">全部</a></li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-0-0-0-0-0-5-0/" target="_self">5座</a>
                      </li>

                      <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-0-0-0-0-0-7-0/" target="_self">7座</a>
                      </li>

                      <li class="others" data-trigger="hover" data-target="#drop-seat" data-toggle="overlay">
                        <a href="javascript:void(0);" target="_self">其他<i class="icon10 icon10-down1"></i></a>
                        <div class="dropdown fn-hide" id="drop-seat">
                          <div class="dropdown-content">
                            <ul>

                              <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-0-0-0-0-0-2-0/"
                                  target="_self">2座</a></li>

                              <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-0-0-0-0-0-4-0/"
                                  target="_self">4座</a></li>

                              <li><a class="nolink" href="https://www.autohome.com.cn/mb/###" target="_self">6座</a></li>

                              <li><a href="https://www.autohome.com.cn/mb/0_0-0.0_0.0-0-0-0-0-0-0-8-0/"
                                  target="_self">7座以上</a></li>

                            </ul>
                          </div>
                        </div>
                      </li>
                    </ul>

                  </div>



                </dd>

                <dd class="last-dd">
                  <span class="fontgrey">按配置：</span>
                  <ul class="pzul" id="auto-grade-config">

                    <li>
                      <label class="labgrey">
                        <input type="checkbox" value="21">全景天窗</label>
                    </li>

                    <li>
                      <label class="labgrey">
                        <input type="checkbox" value="20">电动天窗</label>
                    </li>

                    <li>
                      <label class="labgrey">
                        <input type="checkbox" value="2">电动调节座椅</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="3">车身ESP</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="4">氙气大灯</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="5">GPS导航</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="6">定速巡航</label>
                    </li>

                    <li>
                      <label class="labgrey">
                        <input type="checkbox" value="7">真皮座椅</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="8">倒车雷达</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="9">全自动空调</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="10">多功能方向盘</label>
                    </li>

                    <li>
                      <label class="labgrey">
                        <input type="checkbox" value="13">LED大灯</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="14">倒车影像</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="15">无钥匙启动</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="16">座椅加热</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="17">日间行车灯</label>
                    </li>

                    <li>
                      <label class="labgrey">
                        <input type="checkbox" value="18">自动泊车</label>
                    </li>

                    <li>
                      <label>
                        <input type="checkbox" value="19">蓝牙/车载电话</label>
                    </li>

                  </ul>
                </dd>
              </dl>

              <div class="carfilter-more"><a id="param-display" class="btn btn-mini" isshow="1"
                  href="javascript:void(0);" target="_self"><span class="btn-text">点击收起</span><i
                    class="icon10 icon10-top"></i></a></div>
            </div>
          </div>
          <!--多项筛选结束-->
          <div id="topFixedNav" class="uibox carfilter pop-carfilter">
            <div class="rankcar">
              <span class="fontgrey">品牌名：</span>
              <dl class="caricon-list">

              </dl>
            </div>
          </div>
        </div>
      </div>
      <div class="row" style="padding-bottom: 0;">
        <div id="div_Grade" class="column grid-20">
          <div class="tab tab02 tabrank">
            <!--级别频道导航开始-->
            <div class="tab-nav fn-clear">
              <ul id="view-tab">

                <li data-index="0" class="current"><span>车型名称</span></li>
              </ul>
              <div class="city-name  fn-hide" id="locationWrap">
                <svg id="location" viewBox="0 0 1024 1024">
                  <path d="M839.8
                                347.3c-20.7-146.2-142-263.9-288.7-280.8-200.7-23.1-370.9 133.2-370.9 329.2 0 57.2 16.8 109.9
                                40 158C282.4 682.3 434.9 871 492.4 949.5c9.7 13.3 29.3 13.4 39.3.2 61-80.7 246.4-307.9
                                285.6-425 18.4-54.9 31.5-114 22.5-177.4zM515.8 551c-88.9 0-161-72.1-161-161s72.1-161
                                161-161 161 72.1 161 161-72.1 161-161 161z"></path>
                </svg>
                <span>北京</span>
              </div>
              <div class="tabrank-right">
                <dl class="view-mode">
                  <dd class="current"><a href="javascript:void(0);" target="_self" class="btn btn-mini"
                      data-index="0"><i class="icon16 icon16-list"></i>列表</a></dd>
                  <dd><a href="javascript:void(0);" target="_self" class="btn btn-mini" data-index="1"><i
                        class="icon16 icon16-img"></i>图片</a></dd>
                </dl>
              </div>
            </div>
            <!--级别频道导航结束-->
            <div id="tab-content" class="tab-content">
              <div class="tab-content-item current">
                <div class="uibox">
                  <div class="uibox-con rank-list rank-list-pic">

                    <dl id="75" olr="21" style="display: flex; flex-wrap: wrap;" class="chexingbox">
                      <dt>
                        <img src="http://192.168.1.41:10002/resources/长安.jpeg" alt="" style="width: 50px;height: 50px;"
                          class="pinpaiLogo">
                        <p class="pinpaitext" style="margin-top: 5px;">长安</p>
                      </dt>
                      <dd>
                        <ul class="rank-list-ul">
                          <li id="s4108">
                            <h4 class="chexingmingcheng" style="color: #333;">RAV4荣放(168)</h4>
                            <div>指导价：暂无</div>
                            <div class="detailList"><span class="text-through">报价</span> <a id="atk_4108"
                                href="https://car.autohome.com.cn/pic/series/4108.html#pvareaid=103448">图库</a>
                              <a data-value="4108" class="goDetail" href="./details.html?id=117">详情</a>
                              <a href="https://club.autohome.com.cn/bbs/forum-c-4108-1.html#pvareaid=103447">论坛</a>
                              <a href="https://k.autohome.com.cn/4108/#pvareaid=103459">口碑</a>
                            </div>
                          </li>
                          <li id="s4108">
                            <h4 class="chexingmingcheng" style="color: #333;">卡罗拉(169)</h4>
                            <div>指导价：暂无</div>
                            <div class="detailList"><span class="text-through">报价</span> <a id="atk_4108"
                                href="https://car.autohome.com.cn/pic/series/4108.html#pvareaid=103448">图库</a>
                              <a data-value="4108" class="goDetail" href="./details.html?id=118">详情</a>
                              <a href="https://club.autohome.com.cn/bbs/forum-c-4108-1.html#pvareaid=103447">论坛</a>
                              <a href="https://k.autohome.com.cn/4108/#pvareaid=103459">口碑</a>
                            </div>
                          </li>
                          <li id="s4108">
                            <h4 class="chexingmingcheng" style="color: #333;">汉兰达(170)</h4>
                            <div class="detailList">指导价：暂无</div>
                            <div><span class="text-through">报价</span> <a id="atk_4108"
                                href="https://car.autohome.com.cn/pic/series/4108.html#pvareaid=103448">图库</a>
                              <a data-value="4108" class="goDetail" href="./details.html?id=119">详情</a>
                              <a href="https://club.autohome.com.cn/bbs/forum-c-4108-1.html#pvareaid=103447">论坛</a>
                              <a href="https://k.autohome.com.cn/4108/#pvareaid=103459">口碑</a>
                            </div>
                          </li>
                          <li id="s4108">
                            <h4 class="chexingmingcheng" style="color: #333;">凯美瑞(171)</h4>
                            <div>指导价：暂无</div>
                            <div class="detailList"><span class="text-through">报价</span> <a id="atk_4108"
                                href="https://car.autohome.com.cn/pic/series/4108.html#pvareaid=103448">图库</a>
                              <a data-value="4108" class="goDetail" href="./details.html?id=120">详情</a>
                              <a href="https://club.autohome.com.cn/bbs/forum-c-4108-1.html#pvareaid=103447">论坛</a>
                              <a href="https://k.autohome.com.cn/4108/#pvareaid=103459">口碑</a>
                            </div>
                          </li>
                        </ul>
                      </dd>
                    </dl>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div style="clear:both;"></div>
    <div class="footer_auto">
      <p>
        <a href="https://www.autohome.com.cn/about/index.htm" target="_blank">关于我们</a><a
          href="https://www.autohome.com.cn/about/lianxi.htm" target="_blank">联系我们</a><a
          href="https://autohome.hirede.com/" target="_blank">招贤纳士</a><span class="fline">|</span><a class="footios"
          href="https://www.autohome.com.cn/apps/1.html" target="_blank">iPhone客户端</a>/<a
          href="https://www.autohome.com.cn/apps/2.html" target="_blank">iPad客户端</a><a class="footand"
          href="https://www.autohome.com.cn/apps/3.html" target="_blank">Android客户端</a><a class="footwp"
          href="https://www.autohome.com.cn/apps/8.html" target="_blank">WP客户端</a><a class="footphone"
          href="https://www.autohome.com.cn/apps/m/" target="_blank">手机版</a><span class="fline">|</span><a
          class="footauto" href="https://weibo.com/qichezhijia" target="_blank">汽车之家</a><span class="fline">|</span><a
          href="https://www.autohome.com.cn/bug/default.aspx" target="_blank">意见反馈</a>
      </p>
      <p>
        <span class="footarial">&#169; www.autohome.com.cn All Rights Reserved.</span> 汽车之家 版权所有
      </p>
    </div>
  </div>

  <script>
    const currentUrl = new URL(window.location)
    const queryParams = new URLSearchParams(currentUrl.search)
    var brandName = queryParams.get('qichepinpai')
    // 封装HTTP 请求
    async function httpRequest(url, method, headers = {}, body = null) {
      const options = {
        method: method,
        headers: {
          'Content-Type': 'application/json',
          ...headers
        }
      };

      if (body) {
        options.body = JSON.stringify(body);
      }

      try {
        const response = await fetch(url, options);
        if (!response.ok) {
          throw new Error(`HTTP error! status: ${response.status}`);
        }
        const data = await response.json();
        return data;
      } catch (error) {
        console.error('Error:', error);
        throw error;
      }
    }
    var pinpaiList = []
    var chexingList = []
    var detailsList = []
    // 获取品牌详情
    httpRequest('http://192.168.1.41:18080/system/info/queryCarInfoTreeList', 'GET')
      .then(function (res) {
        pinpaiList = res
        // console.log(app.pinpaiList);
        const pinpaiBox = document.querySelector('.caricon-list')
        pinpaiList.forEach((item, index) => {
          const dd = document.createElement('dd');
          dd.className = 'caricon01'; // 根据需要设置类名
          const span = document.createElement('span')
          span.innerHTML = item.pinpaiName
          dd.appendChild(span)
          pinpaiBox.appendChild(dd)
          // 面包屑返回加载
          if (item.pinpaiName == brandName) {
            const carActiveList = document.querySelectorAll('.caricon01')
            if (carActiveList.length > 0) {
              carActiveList[index].classList.add('carActive');
            }
            httpRequest(`http://192.168.1.41:18080/system/info/queryCarchexinghaoList?qichepinpai=${brandName}`, 'GET')
              .then(res => {
                chexingList = res
                // console.log(app.chexingList);
                const ul = document.querySelector('.rank-list-ul')
                ul.innerHTML = ''
                chexingList.forEach(item => {
                  const ddBox = document.getElementById('75')
                  const dt = document.querySelector('.pinpaitext')
                  const pinpaiLogo = document.querySelector('.pinpaiLogo')
                  pinpaiList.forEach((i, index) => {
                    if (i.pinpaiName === brandName) {
                      dt.innerHTML = i.pinpaiName
                      pinpaiLogo.src = i.avtar
                    }
                  })
                  const li = document.createElement('li')
                  const h4 = document.createElement('h4')
                  h4.className = 'chexingmingcheng'
                  h4.innerHTML = item.cheXingHao
                  const infoDiv = document.createElement('div');
                  infoDiv.innerHTML = '指导价：暂无';
                  const linksDiv = document.createElement('div');
                  linksDiv.innerHTML = '<span class="text-through">报价</span><a>图库</a>&nbsp;<a class="goDetail">详情</a>&nbsp;<a>论坛</a>&nbsp;<a>口碑</a>';
                  li.appendChild(h4);
                  li.appendChild(infoDiv);
                  li.appendChild(linksDiv);
                  ul.appendChild(li);
                })
              })
          }
        });
        // 导航添加样式
        const carActiveList = document.querySelectorAll('.caricon01')
        if (!brandName) {
          carActiveList[0].classList.add('carActive')
        }
        carActiveList.forEach(item => {
          item.addEventListener('click', function () {
            carActiveList.forEach(allItem => {
              allItem.classList.remove('carActive')
            })
            this.classList.add('carActive')
          })
        })
      })
      .catch(function (error) {
        console.error('Error:', error)
      });

    // 获取品牌下车型
    document.querySelector('.caricon-list').addEventListener('click', function (e) {
      const query = e.target.innerHTML
      httpRequest(`http://192.168.1.41:18080/system/info/queryCarchexinghaoList?qichepinpai=${query}`, 'GET')
        .then(res => {
          chexingList = res
          // console.log(app.chexingList);
          const ul = document.querySelector('.rank-list-ul')
          ul.innerHTML = ''
          chexingList.forEach(item => {
            const ddBox = document.getElementById('75')
            const dt = document.querySelector('.pinpaitext')
            const pinpaiLogo = document.querySelector('.pinpaiLogo')
            pinpaiList.forEach((i, index) => {
              if (i.pinpaiName === query) {
                dt.innerHTML = i.pinpaiName
                pinpaiLogo.src = i.avtar
              }
            })
            const li = document.createElement('li')
            const h4 = document.createElement('h4')
            h4.className = 'chexingmingcheng'
            h4.innerHTML = `${item.cheXingHao}(${item.id})`
            const infoDiv = document.createElement('div')
            infoDiv.innerHTML = '指导价：暂无'
            const linksDiv = document.createElement('div')
            linksDiv.innerHTML = '<span class="text-through">报价</span><a>图库</a>&nbsp;<a class="goDetail">详情</a>&nbsp;<a>论坛</a>&nbsp;<a>口碑</a>';
            li.appendChild(h4);
            li.appendChild(infoDiv);
            li.appendChild(linksDiv);
            ul.appendChild(li);
          })
        })
    })

    // 跳转详情
    document.querySelector('.tab-content').addEventListener('click', function (e) {
      let chexingmingcheng = null

      if (e.target.tagName === 'H4') {
        chexingmingcheng = e.target.textContent.substring(0,  e.target.textContent.length - 5)
      } else if (e.target.textContent === '详情') {
          const parentDiv = e.target.closest('li')
          const h4 = parentDiv.querySelector('h4')
          chexingmingcheng = h4.textContent.trim()
          console.log(chexingmingcheng);
      }

      if (chexingmingcheng) {
        httpRequest(`http://192.168.1.41:18080/system/info/queryChexingmingchengList?chexinghao=${chexingmingcheng}`, 'GET')
          .then(res => {
            const detailsList = res
            detailsList.forEach(item => {
              if (e.target.tagName === 'H4') {
                location.href = `./details.html?id=${item.id}` 
              }  
              if (e.target.textContent === '详情') {
                e.preventDefault()
                const detailLinks = document.querySelectorAll('.goDetail')
                detailLinks.forEach(link => {
                  link.href = `./details.html?id=${item.id}`
                  window.open(link.href)
                  console.log(link.href, item.id);
                  // link.addEventListener('click', function() {
                  //   link.href = `./details.html?id=${item.id}`
                  //   window.open(`./details.html?id=${item.id}`, target="_self")
                  //   console.log(link.href, item.id);
                  // })
                })
              }
            }) 
          })
          .catch(err => {
            console.error('Error fetching data:', err)
          })
      }
    })
  </script>
</body>

</html>